import request from '@/utils/request'

// 查询地图监控列表
export function listDispatchMapMonitor(query) {
  return request({
    url: '/dispatch/pipe/dispatchMapMonitor/list',
    method: 'get',
    params: query
  })
}

// 查询地图监控详细
export function getDispatchMapMonitor(mapMonitorId) {
  return request({
    url: '/dispatch/pipe/dispatchMapMonitor/' + mapMonitorId,
    method: 'get'
  })
}

// 新增地图监控
export function addDispatchMapMonitor(data) {
  return request({
    url: '/dispatch/pipe/dispatchMapMonitor',
    method: 'post',
    data: data
  })
}

// 修改地图监控
export function updateDispatchMapMonitor(data) {
  return request({
    url: '/dispatch/pipe/dispatchMapMonitor',
    method: 'put',
    data: data
  })
}

// 删除地图监控
export function delDispatchMapMonitor(mapMonitorId) {
  return request({
    url: '/dispatch/pipe/dispatchMapMonitor/' + mapMonitorId,
    method: 'delete'
  })
}
